<?php
	class giohangbs
	{
		// Các trường
		public $basketSession = ""; // auto_increment
		public $productID = 0;
		public $productPrice = 0;
		public $Email = "";
		public $TenDangNhap = "";
		public $MatKhau = "";
		public $QuyenHan = 0;
		
		// Các phương thức
		public function Them()
		{
			$db = new giohangdb();
			return $db->Them($this->basketSession, $this->productID, $this->productPrice);
		}
		
		public function LayDanhSach()
		{
			$db = new giohangdb();
			return $db->LayDanhSach();
		}
		
		public function Xoa()
		{
			$db = new nguoidungdb();
			return $db->Xoa($this->MaNguoiDung);
		}
		
		public function CapNhat()
		{
			$db = new nguoidungdb();
			return $db->CapNhat($this->MaNguoiDung, $this->HoVaTen, $this->NgaySinh, $this->DienThoai, $this->Email, $this->MatKhau);
		}
	}
?>